#include <bits/stdc++.h>
using namespace std;
int n,a[100010],b[100010];
int main(){//100pts
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n,hig=0,low=114514;
    cin>>n;
    for(int i=0;i<n;i++){
        int x;
        cin>>x;
        a[x]++;
        hig=max(hig,x);
        low=min(low,x);
    }
    int p=0;
    for(int i=low;i<=hig;i++){
        if(a[i]!=0){
            b[p]=a[i];
            p++;
        }
    }
    int sum=0;
    for(int i=0;i<p;i++){
        if(b[i]>b[i+1]){
            b[i+1]=b[i];
        }
    }
    cout<<b[p];
    return 0;
}